package com.tang.model.vo;

/**
 * 树根建造者类
 * 
 * @author Tang
 */
public final class TreeRootBuilder {
    private Long treeId; // 规则树ID
    private Long treeRootNodeId; // 规则树根ID
    private String treeName; // 规则树名称

    private TreeRootBuilder() {
    }

    public static TreeRootBuilder builder() {
        return new TreeRootBuilder();
    }

    public TreeRootBuilder treeId(Long treeId) {
        this.treeId = treeId;
        return this;
    }

    public TreeRootBuilder treeRootNodeId(Long treeRootNodeId) {
        this.treeRootNodeId = treeRootNodeId;
        return this;
    }

    public TreeRootBuilder treeName(String treeName) {
        this.treeName = treeName;
        return this;
    }

    public TreeRoot build() {
        TreeRoot treeRoot = new TreeRoot();
        treeRoot.setTreeId(treeId);
        treeRoot.setTreeRootNodeId(treeRootNodeId);
        treeRoot.setTreeName(treeName);
        return treeRoot;
    }
}
